Bryan Davis [Mon, 6 Apr 2015 20:13:14 +0000 (14:13 -0600)]
Separate Monolog shims from other logging shims
Move the non-namespaced classes referencing external Monolog classes to
an isolated PHP source file so that they aren't brought into scope by
the need to load another shim class.
Bug: T95220
Change-Id: I8270b8d5cd25db5a0f84fa94f59a6555052ae1ae
jenkins-bot [Mon, 6 Apr 2015 19:32:02 +0000 (19:32 +0000)]
Merge "Fix ApiQuerySiteInfo with siprop=rightsinfo to not die if your wgRightsPage is null"
Translation updater bot [Mon, 6 Apr 2015 19:20:51 +0000 (21:20 +0200)]
Localisation updates from https://translatewiki.net.
Change-Id: I61ce392554123f4e0ff300bed2e289cf02dd4cf6
Aaron Schulz [Mon, 30 Mar 2015 20:37:21 +0000 (13:37 -0700)]
Added CAS-style logic to User::saveSettings as a final sanity check
* This should prevent lag or race conditions from rolling back data
Change-Id: I5e70975f4e4010fea7af0801bc11dda887df55f4
jenkins-bot [Mon, 6 Apr 2015 19:09:56 +0000 (19:09 +0000)]
Merge "Cut down on deadlocks in invalidatePages()"
jenkins-bot [Mon, 6 Apr 2015 18:47:48 +0000 (18:47 +0000)]
Merge "Made User::newTouchedTimestamp handle clock skew a bit better"
jenkins-bot [Mon, 6 Apr 2015 18:36:08 +0000 (18:36 +0000)]
Merge "Update special pages aliases for Luri (lrc) from translatewiki"
Aaron Schulz [Mon, 6 Apr 2015 18:26:42 +0000 (11:26 -0700)]
Log when User::saveSettings is called in read-only mode
Change-Id: I56a1760f2e6bbda889590777b553a8dfda587590
jenkins-bot [Mon, 6 Apr 2015 18:17:04 +0000 (18:17 +0000)]
Merge "Update special pages aliases for Persian (fa) from translatewiki"
Aaron Schulz [Mon, 6 Apr 2015 18:12:41 +0000 (11:12 -0700)]
Made User::newTouchedTimestamp handle clock skew a bit better
* This does not handle race conditions, but is a prelude to using CAS
style logic on save using the timestamp.
Change-Id: I9c31c272fcf77b686764b7c3a6a32ac29576347c
jenkins-bot [Mon, 6 Apr 2015 17:35:42 +0000 (17:35 +0000)]
Merge "Catch rollback exceptions in API exception handling"
Alex Monk [Mon, 6 Apr 2015 17:24:15 +0000 (18:24 +0100)]
Fix ApiQuerySiteInfo with siprop=rightsinfo to not die if your wgRightsPage is null
Follows-up I2b36b7a3
Change-Id: I7d76cd48021a0097ce5e11f4ad4100cb85ee5ad0
Brad Jorsch [Fri, 3 Apr 2015 16:12:30 +0000 (12:12 -0400)]
Catch rollback exceptions in API exception handling
Like I92293b22, but for the API. Needed for I41508127f fixing ignore
handling in the DB.
Change-Id: I1f2b70c80c7496f463f678b950c08de22476ea66
jenkins-bot [Mon, 6 Apr 2015 16:43:37 +0000 (16:43 +0000)]
Merge "Parser: Say tildes instead of ~~~ in comment to fix Doxygen fatal"
Gilles Dubuc [Mon, 6 Apr 2015 08:40:15 +0000 (10:40 +0200)]
Track request method in dbperformance.log
This will allow us to avoid needlessly investigating master requests that
only happen on POST (which is already what we want for multi-DC).
Bug: T92357
Change-Id: Ia7437d00f5b89a8e318d85659d60e2f9f9f26149
jenkins-bot [Mon, 6 Apr 2015 14:41:53 +0000 (14:41 +0000)]
Merge "Add a breadcrumb to EditPage refactor"
Timo Tijhof [Wed, 1 Apr 2015 00:37:28 +0000 (01:37 +0100)]
Parser: Say tildes instead of ~~~ in comment to fix Doxygen fatal
Doxygen was unable to parse the file past validateSig().
> Parser.php:6397: warning: reached end of file while inside a ~~~ block!
> The command that should end the block seems to be missing!
Change-Id: I3d1b547968302611d2bd78a7c11dd0738b40d23a
Kunal Mehta [Wed, 1 Apr 2015 20:44:54 +0000 (13:44 -0700)]
mergeMessageFileList: Support reading extension/skin.json files
No more hacky reading of PHP files!
Bug: T94756
Change-Id: I0a92f8904bbc422d5c893f7c0af2daedf7576cf0
jenkins-bot [Mon, 6 Apr 2015 06:22:49 +0000 (06:22 +0000)]
Merge "ResourceLoaderImage: Allow shorthand syntax"
jenkins-bot [Mon, 6 Apr 2015 06:22:45 +0000 (06:22 +0000)]
Merge "resourceloader: Omit empty parameters from mw.loader.implement calls"
jenkins-bot [Mon, 6 Apr 2015 01:27:05 +0000 (01:27 +0000)]
Merge "objectcache: Add @covers for BagOStuffTest"
mjbmr [Sun, 5 Apr 2015 23:59:55 +0000 (23:59 +0000)]
Fix description for MessagesBgn.php
Add author names which I forgot
Change-Id: I18358f9e90276bf9db5eb03baf7813c72a3a2736
mjbmr [Sun, 5 Apr 2015 23:07:22 +0000 (23:07 +0000)]
Update special pages aliases for Luri (lrc) from translatewiki
Change-Id: I17d71f47f8b7b7710261ab3c0a50bb8c45583b9d
mjbmr [Sun, 5 Apr 2015 23:02:15 +0000 (23:02 +0000)]
Add special pages aliases for Western Balochi (bgn) from translatewiki
Change-Id: Iadc088653b1b0e5188ec0f106d278448edbcf17e
Translation updater bot [Sun, 5 Apr 2015 18:45:49 +0000 (20:45 +0200)]
Localisation updates from https://translatewiki.net.
Change-Id: I13e36a6ca3c35959e1e5912ac27193cc13d9c74f
jenkins-bot [Sun, 5 Apr 2015 17:43:30 +0000 (17:43 +0000)]
Merge "Mock error event firing in mw.loader test"
Timo Tijhof [Sun, 5 Apr 2015 15:02:53 +0000 (16:02 +0100)]
objectcache: Add @covers for BagOStuffTest
Change-Id: I93a8074ba79b5ea66a984edabe009cc828e6fc4d
jenkins-bot [Sun, 5 Apr 2015 13:07:06 +0000 (13:07 +0000)]
Merge "DefaultSettings: Remove "~~~~" from comment to fix Doxygen parse error"
umherirrender [Sat, 7 Feb 2015 18:18:45 +0000 (19:18 +0100)]
Skip file count on Special:Statistics when no files and no upload
There is no need to show the number of zero files on Special:Statistics
when it is not possible to upload files, but it is needed, when some
files already uploaded even if the upload is disabled later.
Change-Id: I4431166ebc8e952e5d926d874b56c743bebcbef1
Adam Roses Wight [Sun, 5 Apr 2015 06:48:02 +0000 (23:48 -0700)]
Add a breadcrumb to EditPage refactor
Change-Id: I4cc398e712f499fdf35ac9384912e68ac8e9010b
Ori Livneh [Fri, 3 Apr 2015 23:17:13 +0000 (16:17 -0700)]
Html::srcSet: allow density to be specified either with or without trailing 'x'
$wgLogoHD is meant to contain high-density alternatives for $wgLogo, but its
keys include the trailing 'x' (e.g., '1.5x'), making it unusable with
Html::srcSet(). Fix that by normalizing all density values to have a
single trailing 'x'.
Change-Id: I62cc3a9e4aeff3a7cb102de2965b8b40fd106c37
Translation updater bot [Sat, 4 Apr 2015 18:38:02 +0000 (20:38 +0200)]
Localisation updates from https://translatewiki.net.
Change-Id: Ie48757c02285cbc60158862e2b73be9fe0d8b141
Liangent [Sat, 4 Apr 2015 04:53:29 +0000 (12:53 +0800)]
Output converted namespace name in nstab when nstab-* is not defined
In languages without converter implemented, FakeConverter just invokes
Language::getFormattedNsText(), which is the function used originally.
Change-Id: Ieb34a65776cf69bcd67f1ed8402eb3d38ece0f0c
jenkins-bot [Sat, 4 Apr 2015 04:25:22 +0000 (04:25 +0000)]
Merge "Verify parameter for MapCacheLRU::has() can be passed to array_key_exists()"
Roan Kattouw [Fri, 3 Apr 2015 22:05:42 +0000 (15:05 -0700)]
Update OOjs UI to v0.9.7
Release notes:
https://git.wikimedia.org/blob/oojs%2Fui.git/v0.9.7/History.md
Change-Id: I6548deccf1bce60873ed16229905cfa5790ec4a0
Max Semenik [Fri, 3 Apr 2015 08:33:38 +0000 (01:33 -0700)]
Kill Dwimmerlaik
Seriously, the ops team spent some time trying to find that page during an outage,
while in fact it's an obscure Tolkien reference - better be clear.
Also, set the other dummy titles to something very clearly explaining what's
going on and where.
Change-Id: I6f33a2ea5030f22a258830a33f7bcefa7f0acd85
mjbmr [Mon, 30 Mar 2015 00:07:57 +0000 (00:07 +0000)]
Make {{int:emailuserfooter}} use {{int:emailpage}} in the quotes
Change-Id: Iacbae715e24f783a4483dc739a6d88c6b24e53b8
Timo Tijhof [Thu, 2 Apr 2015 12:47:07 +0000 (13:47 +0100)]
jquery.suggestions: Convert documentation to JSDuck format
Change-Id: I39aba7f3f0c9d397f26934446e3a5ef686d84d86
jenkins-bot [Fri, 3 Apr 2015 19:21:50 +0000 (19:21 +0000)]
Merge "jquery.suggestions: Document the callback context and parameters"
Bryan Davis [Mon, 23 Mar 2015 00:53:24 +0000 (18:53 -0600)]
Move MWLogger classes to MediaWiki\Logger namespace
Move the MWLogger PSR-3 logging related classes into the
MediaWiki\Logger namespace. Create shim classes to ease migration of
existing MWLoggerFactory usage to the namespaced classes.
Bug: T93406
Change-Id: I359cc81fbd2dcf8937742311dcc7d3dee08747b0
Ori Livneh [Fri, 3 Apr 2015 18:26:20 +0000 (18:26 +0000)]
Merge "PHPCS lint fixes"
Ori Livneh [Fri, 3 Apr 2015 18:07:39 +0000 (11:07 -0700)]
PHPCS lint fixes
Change-Id: I16288db03f34439bdb16940a86720d2511f46467
Translation updater bot [Fri, 3 Apr 2015 18:02:47 +0000 (20:02 +0200)]
Localisation updates from https://translatewiki.net.
Change-Id: I94574a6af0fbcc11b1ec6e7fc6adee2650bf2224
Aaron Schulz [Fri, 3 Apr 2015 17:03:19 +0000 (10:03 -0700)]
Cut down on deadlocks in invalidatePages()
Bug: T94992
Change-Id: I70f9d931b624e46ccc19f890d61de8d11326e686
jenkins-bot [Fri, 3 Apr 2015 16:50:20 +0000 (16:50 +0000)]
Merge "Made rollbackMasterChanges catch exceptions, throwing the last one"
Aaron Schulz [Thu, 2 Apr 2015 19:33:30 +0000 (12:33 -0700)]
Made rollbackMasterChanges catch exceptions, throwing the last one
Change-Id: Ida36a302b35434d1af464cb77a0084ec441d038a
jenkins-bot [Fri, 3 Apr 2015 16:10:44 +0000 (16:10 +0000)]
Merge "Add namespaces for Western Balochi (bgn) from translatewiki"
jenkins-bot [Fri, 3 Apr 2015 16:05:20 +0000 (16:05 +0000)]
Merge "Add special pages aliases for Luri (lrc) from translatewiki"
Gilles Dubuc [Thu, 2 Apr 2015 09:53:12 +0000 (11:53 +0200)]
Better file size limit message display logic
Only display upload size limit differentiation message
if there are 2 upload methods.
Bug: T94727
Change-Id: I23c5a5c5e7a30484c242005db831eec5c8c1f4a7
Gilles Dubuc [Fri, 3 Apr 2015 12:11:26 +0000 (14:11 +0200)]
Skin: Account for User::newFromName returning false
Follows-up
e41f5a07f893cf.
Bug: T92357
Change-Id: I00edfaed92af7d16894453f28999bfce2de2e37a
Aaron Schulz [Fri, 3 Apr 2015 09:48:42 +0000 (02:48 -0700)]
Made Skin::getRelevantUser use READ_NORMAL
Bug: T92357
Change-Id: I5089c99ae3a21bb8d41d488d18dd63fe1eaefea9
jenkins-bot [Fri, 3 Apr 2015 09:24:53 +0000 (09:24 +0000)]
Merge "Removed BloomFilter classes"
Aaron Schulz [Fri, 3 Apr 2015 08:28:08 +0000 (01:28 -0700)]
Removed BloomFilter classes
* This ends up being more complex than its worth
and even more so for multi-DC support
Bug: T93006
Change-Id: Iaa774fe69061e42955b11dc82d30dba93208e606
Kunal Mehta [Thu, 2 Apr 2015 17:31:24 +0000 (10:31 -0700)]
SkinFallback: Recommend using wfLoadSkin() if possible
Change-Id: I4f3841029578305ab692d853c45678f487adbc78
umherirrender [Wed, 14 Jan 2015 18:09:55 +0000 (19:09 +0100)]
Remove form when including empty Special:WhatLinksHere
Included special pages should never show a form, because a included
special page is designed to show the result of something, not allow
starting a search (where than Special:WhatLinksHere is opened instead of
showing the result within the wiki page).
On no input Special:WhatLinksHere would output nothing, like a
transcluded Special:Contributions would do.
Bug: T67779
Change-Id: I289fd8fe6bbd4238581035770a472b1c7b9f2643
Timo Tijhof [Tue, 9 Dec 2014 01:17:53 +0000 (01:17 +0000)]
resourceloader: Omit empty parameters from mw.loader.implement calls
Follows-up
ebeb29723,
1f393b6da,
0e719ce23.
Also:
* Add tests for ResourceLoader::makeLoaderImplementScript().
* Apply ResourceLoader::trimArray to makeLoaderImplementScript (new in
c0c221bf).
This commit changes the load.php response to omit empty parameters.
These parameters were required until recently. The client has been
updated (
1f393b6da and
0e719ce23) to make these optional, thus supporting
both the old server format and the change this commit makes
Clients with a tab open from before
0e719ce23 are naturally not
compatible with load.php responses from after this commit. Ensure
this is deployed several days after
0e719ce23 to reduce race
conditions of this nature.
(This is a re-submitted version of
4ce0c0da4)
Bug: T88879
Change-Id: I9e998261ee9b0b745e3339bc3493755c0cb04b6a
Matthew Flaschen [Fri, 3 Apr 2015 02:53:57 +0000 (22:53 -0400)]
Have back-compat shim actually return the value
Bug: T94958
Change-Id: I75fbd11c8bb357b83079402592e8863acef18fb1
jenkins-bot [Fri, 3 Apr 2015 00:57:51 +0000 (00:57 +0000)]
Merge "Fixed class name typo in docs"
Aaron Schulz [Fri, 3 Apr 2015 00:42:41 +0000 (17:42 -0700)]
Fixed class name typo in docs
Change-Id: Ifc73af824b31fc2f709b777397896f605fe6dfff
jenkins-bot [Thu, 2 Apr 2015 23:41:12 +0000 (23:41 +0000)]
Merge "Check return value of preg_match in Sanitizer.php"
jenkins-bot [Thu, 2 Apr 2015 23:41:06 +0000 (23:41 +0000)]
Merge "Add checks to try to catch T92046"
mjbmr [Thu, 2 Apr 2015 23:01:20 +0000 (23:01 +0000)]
Add namespaces for Western Balochi (bgn) from translatewiki
Change-Id: I87e2842b3d204098768fb265b5e2f7bf715d918b
jenkins-bot [Thu, 2 Apr 2015 22:37:52 +0000 (22:37 +0000)]
Merge "languages: Backtick "<em>" since it's meant as code instead of mark up"
jenkins-bot [Thu, 2 Apr 2015 22:29:12 +0000 (22:29 +0000)]
Merge "Doxyfile: Suppress warnings for phpunit "@" annotations"
jenkins-bot [Thu, 2 Apr 2015 22:29:09 +0000 (22:29 +0000)]
Merge "Doxyfile: Suppress warnings for invalid @codingStandardsIgnoreStart"
jenkins-bot [Thu, 2 Apr 2015 22:29:05 +0000 (22:29 +0000)]
Merge "mwdocgen: Exclude node_modules from Doxygen"
jenkins-bot [Thu, 2 Apr 2015 22:29:02 +0000 (22:29 +0000)]
Merge "DefaultSettings: Fix doxygen warning for missing @endcond"
jenkins-bot [Thu, 2 Apr 2015 21:20:54 +0000 (21:20 +0000)]
Merge "Use structured logging/MWLoggerFactory for TransactionProfiler"
jenkins-bot [Thu, 2 Apr 2015 21:16:37 +0000 (21:16 +0000)]
Merge "Don't trigger MessageBlobStore during tests"
mjbmr [Thu, 2 Apr 2015 20:00:16 +0000 (20:00 +0000)]
Add special pages aliases for Luri (lrc) from translatewiki
Change-Id: I134b75f95e4d5aab6cf40e493c144de41806b47e
Timo Tijhof [Thu, 2 Apr 2015 12:08:07 +0000 (13:08 +0100)]
jquery.suggestions: Document the callback context and parameters
Change-Id: Ida73a836952b66476bfff4925ea6c1eee3e58b52
Timo Tijhof [Tue, 31 Mar 2015 23:53:25 +0000 (00:53 +0100)]
DefaultSettings: Remove "~~~~" from comment to fix Doxygen parse error
> /includes/DefaultSettings.php:7478:
> warning: reached end of file while inside a ~~~ block!
> The command that should end the block seems to be missing!
Three or more tildes in plain text results in the beginning of
a fenced code block.
http://doxygen.org/manual/markdown.html
https://michelf.ca/projects/php-markdown/extra/#fenced-code-blocks
It stopped parsing after $wgUrlProtocols and ignored the rest.
I tried to escape it in different ways but couldn't find any method
that keeps the string readable and inline. If it's important we can
put it back in an indented code block.
Change-Id: If350a917c6afaebcd45f246404b6b6195453e51e
Timo Tijhof [Wed, 1 Apr 2015 00:11:18 +0000 (01:11 +0100)]
languages: Backtick "<em>" since it's meant as code instead of mark up
For unknown things like <site> and <nowiki> it defaults to text,
but (like wikitext) it does support certain tags such as <em>.
Change-Id: Ib7bead3cb72fd7c361c8032bfc3069da970226bc
Timo Tijhof [Tue, 31 Mar 2015 23:48:04 +0000 (00:48 +0100)]
LogFormatter: Indent code to fix Doxygen parse error
This file was not being indexed due to a parse error.
> /includes/logging/LogFormatter.php:844:
> warning: Reached end of file while still inside a (nested) comment.
> Nesting level 2 (probable line reference: 48, 26)
Change-Id: Ie34ae644d06e705991b934d4389e8c41bb7f77a7
Bartosz Dziewoński [Thu, 2 Apr 2015 17:54:07 +0000 (19:54 +0200)]
ResourceLoaderImage: Allow shorthand syntax
array( "en,de,fr" => "foo.svg" ) now means the same as
array( "en" => "foo.svg", "de" => "foo.svg", "fr" => "foo.svg" ).
Bug: T76539
Change-Id: I0bf82e06be3c5f94b6ac88bbc0437b5229ceb284
jenkins-bot [Thu, 2 Apr 2015 18:34:50 +0000 (18:34 +0000)]
Merge "Added read-only checks around User::saveSettings where they belong"
Translation updater bot [Thu, 2 Apr 2015 18:32:41 +0000 (18:32 +0000)]
Merge "Localisation updates from https://translatewiki.net."
Translation updater bot [Thu, 2 Apr 2015 18:28:33 +0000 (20:28 +0200)]
Localisation updates from https://translatewiki.net.
Change-Id: Iabff7129bf55c58ec92f46dd34457093409087f2
jenkins-bot [Thu, 2 Apr 2015 18:22:44 +0000 (18:22 +0000)]
Merge "Simplify profiler output class selection"
Aaron Schulz [Mon, 30 Mar 2015 19:00:07 +0000 (12:00 -0700)]
Added read-only checks around User::saveSettings where they belong
* Ideally saveSettings() would not just silently do nothing in
read-only mode as not all callers expect that behavior. This
change is just the first step.
Change-Id: Ieeaf531dac3027ddba89c60159b98f9c04de78d3
Ori Livneh [Thu, 2 Apr 2015 17:46:57 +0000 (10:46 -0700)]
Simplify profiler output class selection
Instead of maintaining a mapping of short names to class names ('db' =>
'ProfilerOutputDb', etc.), let us adopt the convention of using the full
class name to indicate the output type. We can maintain backward-compatibility
by using simple string manipulation to transform short names to the full class
names.
Change-Id: I976e0da2873d88b9892fb41823cfe3af0a2d3974
umherirrender [Sat, 21 Feb 2015 09:37:31 +0000 (10:37 +0100)]
Check return value of preg_match in Sanitizer.php
preg_match returns bool to indicate if $regs contains content, check
that before using the array.
Bug: T75487
Change-Id: Idca50feb170e35ca25e9874674f5a4091748052a
Max Semenik [Wed, 1 Apr 2015 00:13:47 +0000 (17:13 -0700)]
Minor cleanups
* Declare undeclared variables
* Kill unused variables
* Fix comments including PHPDoc
Change-Id: I60015f6b6740aa9088bda3745f4dc4e65e29fcb1
Kunal Mehta [Sun, 29 Mar 2015 08:41:38 +0000 (01:41 -0700)]
Don't require database access in ApiMainTest
It's still slow though because ApiTestCase does expensive things in
setUp(), but nothing in these tests need database access anymore.
Change-Id: Iaf431cc62fe23154c42967e6391c533fe1c5346e
jenkins-bot [Thu, 2 Apr 2015 15:30:07 +0000 (15:30 +0000)]
Merge "Remove redundant NS_MAIN from translations"
jenkins-bot [Thu, 2 Apr 2015 14:17:54 +0000 (14:17 +0000)]
Merge "Change labels of paging links in Category page"
jenkins-bot [Thu, 2 Apr 2015 13:25:28 +0000 (13:25 +0000)]
Merge "Message: Clean up unit tests and improve code coverage"
Timo Tijhof [Thu, 2 Apr 2015 07:01:38 +0000 (08:01 +0100)]
Message: Clean up unit tests and improve code coverage
* Remove unnecessary use of ReflectionClass. It was testing
internal properties that aren't part of the API. Using the
getters instead.
* Remove need for func_get_args that was making the test more
complex and the data provider hard to read. Simply maintain
it as array of expected params and array of variadic arguments.
* Rename tests to more closely match tested methods.
* Rename data providers to provide*, and make them static.
* Reorder tests to more closely match logical order of the class.
* Improve line coverage from 31% to 67%.
Also:
* Remove testParams (dupes testConstructorParams).
* Add tests for RawMessage class.
* Add tests for transformation and parsing.
* Add tests for wfMessage().
* Add tests for Message::newFrom*.
* Add tests for "$*" replacement.
* Add tests for __toString.
Change-Id: I2b183a66f9e9f51bd800088e174b1ae4d3284d8d
Timo Tijhof [Thu, 2 Apr 2015 01:15:50 +0000 (02:15 +0100)]
User: Add unit tests for getId, isAnon and isLoggedIn
Change-Id: Ie007d9da47df871f99ca19c4d7364f46f71c255b
Kunal Mehta [Thu, 2 Apr 2015 05:51:38 +0000 (22:51 -0700)]
installer: Read from extension.json if possible
We still have to keep in the hacky include code to support extensions
not using extension registration yet.
Bug: T94668
Change-Id: Ifedbf8026d46e376181e957725cd91d365295fcb
Ori Livneh [Thu, 2 Apr 2015 04:09:20 +0000 (21:09 -0700)]
Follow-up to Icf644ad34: Introduce ProfilerOutputStats
Change-Id: Ib3585303b75899c4cd7c9c88fb3473b441e52c23
purodha [Fri, 20 Mar 2015 20:02:14 +0000 (20:02 +0000)]
PLURAL support for list lengths in default-skin-not-found
https://translatewiki.net/wiki/Thread:Support/About_MediaWiki:Default-skin-not-found/en_(2)
Change-Id: I7cfde0743f9a97927b3db134b1f0ae51950f8a3f
Ori Livneh [Wed, 1 Apr 2015 23:30:16 +0000 (16:30 -0700)]
Introduce ProfilerOutputStats
* Associate Profiler objects with a request context by adding a $context
property with a getter and a setter.
* Introduce ProfilerOutputStats, which writes profiling data to the stats
buffer associated with the current request context.
* Make it the Profiler class's responsibility to enforce $wgProfilerLimit.
* Deprecate $wgProfilerLimit in favor of the (more aptly named, IMO)
$wgProfiler['threshold'] config setting.
* Tidy up Profiler instance creation code in Profiler::instance().
* Add Profiler::getOutputs, which returns an array of ProfilerOutput instances
which are configured for the current profiler and whose canUse() method
returns true.
* Make ProfilerStub not log by creating a stub ProfilerStub::logData() method
which does not call the parent. Previously the parent class checked if $this
was an instance of ProfilerStub and returned early if so.
Task: T90623
Task: T85641
Change-Id: Icf644ad3435c1f30d0a49957a97b481808a3153d
Ori Livneh [Wed, 1 Apr 2015 23:16:09 +0000 (16:16 -0700)]
Make WebRequest objects time-aware
* Deprecate $wgRequestTime in favor of $_SERVER['REQUEST_TIME_FLOAT'], which is
more accurate. Because $_SERVER['REQUEST_TIME_FLOAT'] is only set for PHP
5.4+, set it to microtime( true ) in WebStart.php for back-compatibility.
* Add a 'requestTime' property to WebRequest objects, set to
$_SERVER['REQUEST_TIME_FLOAT'] for WebRequest or the instance creation time
for FauxRequest instances.
* Use that to provide WebRequest::getElapsedTime(), which gets the time since
the request was initiated.
* In wfLogProfilingData(), get the user and request objects from the context
object rather than from global scope.
Opportunistic clean-up: move the magic quotes check to WebStart.php and make
the error message more helpful.
Change-Id: I7e07e22eaf16b5141b80ad9f843285c542a127b7
jenkins-bot [Wed, 1 Apr 2015 22:27:33 +0000 (22:27 +0000)]
Merge "tests: Clean up file headers"
jenkins-bot [Wed, 1 Apr 2015 22:27:27 +0000 (22:27 +0000)]
Merge "installer: Use wfLoadExtension/Skin in LocalSettingsGenerator"
jenkins-bot [Wed, 1 Apr 2015 20:48:50 +0000 (20:48 +0000)]
Merge "Sync up with Parsoid parserTests."
Kunal Mehta [Wed, 1 Apr 2015 20:42:21 +0000 (13:42 -0700)]
registration: Make it easier for other code to get extension metadata
Right now if other code wanted to access extension metadata from
extension.json, it would have to either re-implement parts of
loadFromQueue() or make assumptions about the processor and schema being
used.
Lets split that code out in to a public readFromQueue() function that
returns all extracted data from the processors.
Change-Id: I314d73341d3faaa47e01f722123c20fd8f61da8a
jenkins-bot [Wed, 1 Apr 2015 20:18:28 +0000 (20:18 +0000)]
Merge "ResourceLoaderImageModule: Remove stupid TODO"
Subramanya Sastry [Wed, 1 Apr 2015 20:07:44 +0000 (15:07 -0500)]
Sync up with Parsoid parserTests.
This now aligns with Parsoid commit
ea9c04956577c35ec15609a966bf5a4d5541ab45
Change-Id: I310a0c652eb41a9845cfaa3c90262762b6ee4cc8